package it.hopeless.jee6.logging;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.enterprise.inject.Produces;
import javax.enterprise.inject.spi.InjectionPoint;

/**
 * User: frico
 * Date: Feb 14, 2010
 * Time: 7:41:48 PM
 */
public class LogFactory {
   @Produces
   @MyLogger
   public Logger createLogger(InjectionPoint injectionPoint) {
      return LoggerFactory.getLogger(injectionPoint.getMember().getDeclaringClass());
   }
}